Page({
  data: {
    house: {
      building: "3",
      gender: 0,
      id: "6852666240028672",
      idcardBackUrl: "http://yjy-teach-oss.oss-cn-beijing.aliyuncs.com/livimini/production/20230106/6852666233536512.png",
      idcardFrontUrl: "http://yjy-teach-oss.oss-cn-beijing.aliyuncs.com/livimini/production/20230106/6852666221162496.png",
      mobile: "13011112222",
      name: "张三",
      point: "华兴阁",
      room: "351",
      status: 2
    }
  },
  /** 获取房屋信息 */
  async onLoad(ev) {
    // console.log(ev);
    let res = await wx.http({
      url: '/room/' + ev.id
    })
    // console.log(res);
    this.setData({
      house: res.data
    })
  },

  /** 跳转编辑房屋页面 */
  editHouse() {
    wx.navigateTo({
      url: `/house_pkg/pages/form/index?id=${this.data.house.id}`,
    })
  },
})
